package com.fushenlan.epidemicControl.service.Impl;

import com.fushenlan.epidemicControl.mapper.AreaMapper;
import com.fushenlan.epidemicControl.service.AreaService;
import com.fushenlan.po.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;



@Service
public class AreaServiceImpl implements AreaService {

    @Autowired
    private AreaMapper areaMapper;


    /**
     * 获取所有区域数据  通过deep
     * deep   0 省    1 市   2 县  3 镇
     * @param deep
     * @return
     */
    @Override
    public List<Area> findAreaByDeep(String deep) {
        return  areaMapper.findAreaByDeep(deep);
    }

    /**
     * 根据输入的条件获取区域数据
     * @param area
     * @return
     */
    @Override
    public List<Area> findList(Area area) {
        return  areaMapper.findList(area);
    }


}
